package com.uls.hdh.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 投票统计对象 hdh_poll_results
 * 
 * @author hdh
 * @date 2024-11-11
 */
public class HdhPollResults extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long resultId;

    /** 投票事项 */
    @Excel(name = "投票事项")
    private Long pollId;
    /** 投票标题 */
    @Excel(name = "投票标题")
    private String title;
    /** 选项 */
    @Excel(name = "选项")
    private Long optionId;
    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionText;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOptionText() {
        return optionText;
    }

    public void setOptionText(String optionText) {
        this.optionText = optionText;
    }

    /** 总票数 */
    @Excel(name = "总票数")
    private Long totalVotes;

    /** 加权总票数 */
    @Excel(name = "加权总票数")
    private Long weightedVotes;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setResultId(Long resultId) 
    {
        this.resultId = resultId;
    }

    public Long getResultId() 
    {
        return resultId;
    }
    public void setPollId(Long pollId) 
    {
        this.pollId = pollId;
    }

    public Long getPollId() 
    {
        return pollId;
    }
    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setTotalVotes(Long totalVotes) 
    {
        this.totalVotes = totalVotes;
    }

    public Long getTotalVotes() 
    {
        return totalVotes;
    }
    public void setWeightedVotes(Long weightedVotes) 
    {
        this.weightedVotes = weightedVotes;
    }

    public Long getWeightedVotes() 
    {
        return weightedVotes;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("resultId", getResultId())
            .append("pollId", getPollId())
            .append("optionId", getOptionId())
            .append("totalVotes", getTotalVotes())
            .append("weightedVotes", getWeightedVotes())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
